#include <iostream>
#include <Windows.h>
using namespace std;



int main()
{
	typedef int (*pAdd)(int a, int b);

	HINSTANCE hDLL = LoadLibrary( L"YMCppDll.dll" );
	pAdd pFun = (pAdd)GetProcAddress(hDLL, "Operator");

	cout << pFun(1, 2) << endl;
	FreeLibrary(hDLL);

	system("pause");
	return 0;
}